package com.hgd.security.evp.biz.config;

import com.hgd.security.evp.biz.interf.AuthorizePermitAntMatchersHandler;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

import javax.annotation.PostConstruct;
import java.util.ArrayList;
import java.util.List;

/**
 * @author By 尚
 * @date 2019/4/1 0:56
 */
@Component(value = "hgdAuthorizePermitAntMatchersHandler")
@Slf4j
public class HgdAuthorizePermitAntMatchersHandler implements AuthorizePermitAntMatchersHandler {

    private int textInt=0;

    private List<String> permitAntMatchers;

    @PostConstruct
    public void init(){
        log.debug("初始化放权路径");
        permitAntMatchers=new ArrayList<>();
        permitAntMatchers.add("/static/**");
    }

    @Override
    public List<String> getPermitAntMatchers() {
        return permitAntMatchers;
    }

    public int getTextInt() {
        return textInt;
    }

    public void setTextInt(int textInt) {
        this.textInt = textInt;
    }
}
